x11: Stop reordering visuals
authorBenjamin Otte <otte@redhat.com>
Thu, 3 Jun 2021 02:54:37 +0000 (04:54 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 22 Jul 2021 14:06:05 +0000 (16:06 +0200)
commit5784f8c2f9571e07a5e0482925690d70e1e619aa
tree755044f044c9f25fd52512d7e0763260665e3c08
parent74e01ddec50fdf315c47accbd439ca3668ebf18d
x11: Stop reordering visuals

The old code was ordering visuals by depth, but considering that these
days we either use the default visual or a 32bit RGBA visual, that
reordering does not have an effect anymore.

In theory, the only effect is that the GLX Visual selection might select
a different replacement Visual when it checks for improved GL Visuals, but
even there I can't come up with a case where that matters, because
again, the visuals are only reordered by depth and we want to keep the
depth.

In any case, make this a separate commit so bisecting can find this
problem if it ever shows up.
gdk/x11/gdkvisual-x11.c